var types;
var pageObject = {
  data: {
    defaultSize: 'default',
    primarySize: 'default',
    warnSize: 'default',
    disabled: false,
    plain: false,
    loading: false,
    card_num: '',
    timestamp: '',
    balance: 0,
    threshold: 0
  },
  onLoad: function(options){
    this.setData({
      card_num: options.card_num,
      timestamp: options.timestamp,
      balance: options.balance,
      threshold: options.threshold
    });
  }
}

Page(pageObject)